import request from '@/utils/request'

// 获取绑定司机
export const getTruck = (truckId) => request.get(`/manager/bindingDrivers/${truckId}`)

// 启用车辆
export const putEnable = (id) => request.put(`/manager/enable/${id}`)

// 停用车辆
export const putDisable = (id) => request.put(`/manager/disable/${id}`)

// 获取车辆类型分页数据
export const getVehicleList = (params) => request.get('/manager/truck/page', { params })

// 添加车辆
export const postVehicle = (data) => request.post('/manager/truck', data)

// 车辆详情
export const getVehicleId = (id) => request.get(`manager/truck/${id}`)

// 获取已经启用的车辆
export const getWorkingTrucks = () => request.get('/manager/workingTrucks')
